<%--
  Created by bothin
  At 2019/12/22 15:53
  Description: 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.bothin.experiment4.constant.EmployeeTypeConstant" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../component/head_link_css_js.jsp"%>

    <style>
        .layui-form-item .layui-input-inline{
            width: 280px;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部区域 -->
    <%@include file="../component/nav_header.jsp"%>
    <!-- 侧边菜单 -->
    <jsp:include page="../component/nav_side_menu.jsp">
        <jsp:param name="nav" value="0#0" />
    </jsp:include>

    <!-- 内容主体区域 -->
    <div class="layui-body" id="LAY_app_body" style="top: 50px;">
        <div class="layui-fluid">
            <div class="layui-card">
                <div class="layui-card-header">设置我的资料</div>
                <div class="layui-card-body" style="padding-bottom: 50px;">
                    <form class="layui-form" action="${pageContext.request.contextPath}/user/common/change/info" method="post" style="margin-top: 30px;">
                        <div class="layui-form-item">
                            <label class="layui-form-label">帐号：</label>
                            <div class="layui-input-inline">
                                <input type="text" disabled  value="${employee==null?'':employee.account}" autocomplete="off" class="layui-input layui-form-danger">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">名字 *</label>
                            <div class="layui-input-inline">
                                <input type="text" name="name" required placeholder="请输入名字" value="${employee==null?'':employee.name}" autocomplete="off" class="layui-input layui-form-danger">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">手机号码 *</label>
                            <div class="layui-input-inline">
                                <input type="text" name="phone" required placeholder="请输入号码" value="${employee==null?'':employee.phone}" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item layui-hide">
                            <div class="layui-input-inline">
                                <input type="text" name="employeeId" value="${employee==null?'':employee.employeeId}" autocomplete="off" class="layui-input layui-form-danger">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block" style="margin-left: 143px;">
                                <button class="layui-btn" type="submit">立即提交</button>
                                <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="hide_form_content" style="display: none">

</div>
</body>
</html>
<script>
    layui.config({
        base: '${pageContext.request.contextPath}/resources/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'table','sample','useradmin','layer','form'], function(){

        var $ = layui.$
            ,form = layui.form
            ,table = layui.table,layer=layui.layer;

        $('.employee_add').on('click', function(){
            var eid = $(this).data('eid');
            var url = "${pageContext.request.contextPath}/customer/to/add";
            if (eid!=undefined)
                url += "?customerId="+eid +"&page=${pageInfo.pageNum}";
            $("#hide_form_content").load(url);

            layer.open({
                type: 1
                ,title: '添加用户'
                ,content: $("#hide_form_content")
                ,area: ['435px', '300px']
                ,shadeClose:true
            });
        });
    });
</script>



